import AdminLayout from './components/AdminLayout.vue'
import AdminLogin from './pages/AdminLogin.vue'
import AdminDashboard from './pages/AdminDashboard.vue'
import UserList from './pages/UserList.vue'
import ArticleList from './pages/ArticleList.vue'
import CategoryList from './pages/CategoryList.vue'
import TagList from './pages/TagList.vue'
import CommentList from './pages/CommentList.vue'
import MediaLibrary from './pages/MediaLibrary.vue'
import SystemSettings from './pages/SystemSettings.vue'
// 新增的管理页面组件
import CollectionManagement from './pages/CollectionManagement.vue'
import FollowManagement from './pages/FollowManagement.vue'
import LikeManagement from './pages/LikeManagement.vue'
import UserStatistics from './pages/UserStatistics.vue'

// 后台管理系统路由
export const adminRoutes = [
  {
    path: '/admin/login',
    name: 'admin-login',
    component: AdminLogin,
    meta: { requiresAuth: false }
  },
  {
    path: '/admin',
    component: AdminLayout,
    meta: { requiresAuth: true },
    children: [
      {
        path: '',
        name: 'admin-dashboard',
        component: AdminDashboard
      },
      {
        path: 'users',
        name: 'admin-users',
        component: UserList
      },
      {
        path: 'articles',
        name: 'admin-articles',
        component: ArticleList
      },
      {
        path: 'categories',
        name: 'admin-categories',
        component: CategoryList
      },
      {
        path: 'tags',
        name: 'admin-tags',
        component: TagList
      },
      {
        path: 'comments',
        name: 'admin-comments',
        component: CommentList
      },
      {
        path: 'media',
        name: 'admin-media',
        component: MediaLibrary
      },
      {
        path: 'settings',
        name: 'admin-settings',
        component: SystemSettings
      },
      {
        path: 'collections',
        name: 'admin-collections',
        component: CollectionManagement
      },
      {
        path: 'follows',
        name: 'admin-follows',
        component: FollowManagement
      },
      {
        path: 'likes',
        name: 'admin-likes',
        component: LikeManagement
      },
      {
        path: 'statistics',
        name: 'admin-statistics',
        component: UserStatistics
      }
    ]
  }
]